﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="Trackr.GUI.Views.TimeItemView"
	x:Name="TimeItem"
	d:DesignWidth="400" d:DesignHeight="48">
    <Grid Margin="0" Height="33">
			<Grid.ColumnDefinitions>
				<ColumnDefinition x:Name="colTask" Width="*" />
				<ColumnDefinition x:Name="colTime" Width="100" />
			</Grid.ColumnDefinitions>
            <Label Width="220" ToolTip="{Binding task}" Name="Task" Grid.Column="0" FontFamily="Segoe WP N Light" FontSize="18" VerticalAlignment="Bottom" Background="{x:Null}" Margin="15,0" >
                <Label.ContextMenu>
                    <ContextMenu Name="copyTaskDescription">
                        <MenuItem Command="ApplicationCommands.Copy">
                            <!--<MenuItem.Icon>
                            <Image Source="Images/copy.png" />
                        </MenuItem.Icon>-->
                        </MenuItem>
                    </ContextMenu>
                </Label.ContextMenu>
            </Label>
            <Label Content="02:30:35" Name="Duration" Grid.Column="1" FontFamily="Segoe WP N" FontWeight="DemiBold" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="14" Background="{x:Null}" />
		</Grid>
        <UserControl.CommandBindings>
            <CommandBinding
    	    Command="ApplicationCommands.Copy"
    	    Executed="CopyTaskText"
    	    CanExecute="CtrlCCopyCmdCanExecute" />
        </UserControl.CommandBindings>
</UserControl>